class CreateProducts < ActiveRecord::Migration
  def self.up
    create_table :products do |table|
      table.column :name, :string, :limit => 50, :null => false
      table.column :exchange_for, :string, :limit => 40, :null => false
      table.column :start_date, :datetime
      table.column :finish_date, :datetime
      table.column :image_uri, :string, :limit => 100
    end
  end

  def self.down
    drop_table :products
  end
end
